package com.ctbri.arrays;

import java.util.Arrays;

public class Ex18 {

	public static void main(String[] args) {
		BerylliumSphere[] a = new BerylliumSphere[4];
		Arrays.fill(a, new BerylliumSphere());
		BerylliumSphere[] b = new BerylliumSphere[4];
		System.out.println("a = " + Arrays.toString(a));
		System.out.println("b = " + Arrays.toString(b));
		System.arraycopy(a, 0, b, 0, b.length);
		System.out.println("b = " + Arrays.toString(b));
		System.out.println(a[1] == b[1]);
	}

}
